package pattern.prototype.simple;

public class Test {
    public static void main(String[] args) throws CloneNotSupportedException {
        Student stu1 = new Student("张三", "男", 18);
        Student stu2 = (Student) stu1.clone();
        System.out.println(stu1);
        stu2.setName("李四");
        System.out.println(stu1);
        System.out.println(stu2);
    }
}
